package com.android.cl.coludtf.utils;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class Urls {
    /**
     * 请求头token
     */
    public static String AUTH = "Authorization";
    /**
     * POST,传递json 格式数据
     */
    public static String JSON_TYPE = "application/json";
    //网络超时时间 3秒
    public static int HTTP_TIME_OUT = 3000;
    private static String HTTP = "http://";
    /**
     * 接口地址
     */
    private static String IP = "39.98.34.182";
    /**
     * 接口端口
     */
    private static String PORT = "8002";
    /**
     * 退出登录
     */
    public static String URL_LOGIN = getMethod("/login");

    public static final String FROM = "android";

    private static String getMethod(String url) {
        return HTTP + IP + ":" + PORT + url;

    }

    /**
     * 封装基本的提交参数
     *
     * @param
     * @return
     */
    public static final Map<String, String> getDefaultConfigrationMap() {
        Map<String, String> map = new ConcurrentHashMap<String, String>();
        map.put("from", FROM);
        return map;
    }
}
